import {Column, Entity, PrimaryGeneratedColumn} from 'typeorm'

@Entity('swiper')
export class Swiper {
    @PrimaryGeneratedColumn('uuid')
    id:string

    @Column({
        type:'timestamp',
        default:()=>'CURRENT_TIMESTAMP'
    })
    create_at:Date

    @Column({
        type:'timestamp',
        default:()=>'CURRENT_TIMESTAMP'
    })
    update_at:Date

    @Column({
        name:'varchar',
        length:50,
        unique:true
    })
    name:string
}
